import Vue from 'vue'
import Router from 'vue-router'
import Lead from '@/containers/Lead/index.vue'
import Index from '@/containers/Index/index.vue'
import Strategy from '@/containers/Strategy/index.vue'
import Find from '@/containers/Find/index.vue'
import Deer from '@/containers/Deer/index.vue'
import Mine from '@/containers/Mine/index.vue'
import Classify from '@/containers/Strategy/Classify.vue'
import CityHot from '@/containers/Strategy/CityHot.vue'
import ClassifySeason from "../containers/Strategy/ClassifySeason/ClassifySeason.vue"
import ClassifyCity from "../containers/Strategy/ClassifyCity/ClassifyCity.vue"
import ClassifyMouth from "../containers/Strategy/ClassifyMouth/ClassifyMouth.vue"
import Scenic from "../containers/Strategy/Scenic/scenic.vue"
import Chat from '@/containers/Deer/chat.vue'
Vue.use(Router)

export default new Router({
	mode: 'history',
	linkExactActiveClass: 'active',
  routes: [
		{
      path: '/lead',
      name: 'Lead',
      component:Lead
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
    	path: '/strategy',
      name: 'Strategy',
      component: Strategy
    },
		{
		 path:"/cityhot",
		 name:"CityHot",
		 component:CityHot
	 },
		{
			path: '/classify',
			name: 'Classify',
			component: Classify,
			children:[
				{
					path:"classifycity",
					name:"ClassifyCity",
					component:ClassifyCity
				},
				{
					path:"classifymouth",
					name:"ClassifyMouth",
					component:ClassifyMouth
				},
				{
					path:"classifyseason",
					name:"ClassifySeason",
					component:ClassifySeason
				},
			]
		},
		{
			path: '/scenic',
			name:"Scenic",
			component:Scenic
		},
    {
    	path: '/find',
      name: 'Find',
      component: Find
    },
    {
    	path: '/deer',
      name: 'Deer',
      component: Deer
    },
    {
    	path: '/mine',
      name: 'Mine',
      component: Mine
    },
		{
    	path: '/chat',
      name: 'Chat',
      component:Chat,
    },
  ]
})
